<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD Xhtml 1.0 Transitional//EN" "http://www.w3.org/tr/xhtml1/Dtd/xhtml1-transitional.dtd">
<!--
 *************************************************************************
 * The contents of this file are subject to the Openbravo  Public  License
 * Version  1.0  (the  "License"),  being   the  Mozilla   Public  License
 * Version 1.1  with a permitted attribution clause; you may not  use this
 * file except in compliance with the License. You  may  obtain  a copy of
 * the License at http://www.openbravo.com/legal/license.html 
 * Software distributed under the License  is  distributed  on  an "AS IS"
 * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
 * License for the specific  language  governing  rights  and  limitations
 * under the License. 
 * The Original Code is Openbravo ERP. 
 * The Initial Developer of the Original Code is Openbravo SL 
 * All portions are Copyright (C) 2001-2006 Openbravo SL 
 * All Rights Reserved. 
 * Contributor(s):  ______________________________________.
 ************************************************************************
-->
<html xmlns="http://www.w3.org/1999/xhtml">
<HEAD>
  <META http-equiv="Content-Type" content="text/html; charset=UTF-8"></META>
  <TITLE>Order movements between organizations</TITLE>
  <LINK rel="SHORTCUT ICON" href="../../../../../web/images/favicon.ico" type="image/x-icon"/>
  <link rel="stylesheet" type="text/css" href="../../../../../web/skins/Default/Popup/Popup.css" id="paramCSS"/>
  <link rel="stylesheet" type="text/css" href="../../../../../web/skins/Default/Main/Main_Manual.css" id="paramCSS"/>
  <script language="JavaScript" type="text/javascript" id="paramDirection">
    var baseDirection = "../../../../../web/";
  </script>
  <script language="JavaScript" type="text/javascript" id="paramLanguage">
    var LNG_POR_DEFECTO = "en_US";
  </script>
  <SCRIPT language="JavaScript" src="../../../../../web/js/utils.js" type="text/javascript"></SCRIPT>
  <SCRIPT language="JavaScript" src="../../../../../web/js/searchs.js" type="text/javascript"></SCRIPT>
  <SCRIPT language="JavaScript" src="../../../../../web/js/jscalendar/calendar.js" type="text/javascript"></SCRIPT>
  <SCRIPT language="JavaScript" src="../../../../../web/js/ajax.js" type="text/javascript"></SCRIPT>
  <script language="JavaScript" src="../../../../../web/js/messages.js" type="text/javascript"></script>
  <SCRIPT language="JavaScript" src="../utility/MessagesJS.js" type="text/javascript"></SCRIPT>
  <SCRIPT language="JavaScript" src="../../../../../web/js/default/MessageBox.js" type="text/javascript"></SCRIPT>
  <SCRIPT language="JavaScript" src="../../../../../web/js/String.js" type="text/javascript"></SCRIPT>
  <SCRIPT language="JavaScript" src="../../../../../web/js/TypeAheadCombo.js" type="text/javascript"></SCRIPT>
  <script language="JavaScript" src="../../../../../web/js/dojoConfig.js" type="text/javascript"></script>
  <script language="JavaScript" src="../../../../../web/js/dojo/dojo.js" type="text/javascript"></script>
  <script language="JavaScript" type="text/javascript" id="keyMap"></script>
  <script type="text/javascript">
    dojo.hostenv.writeIncludes(); //makes debugging in Venkman possible
  </script>
  <SCRIPT language="JavaScript" type="text/javascript">
    function depurar(action) {
      var frm=document.frmMain;
      if (radioValue(frm.inpcOrderId)==null) {
        mensaje(1);
        return false;
      } else if (frm.inpadOrgIdNew.selectedIndex<1) {
        frm.inpadOrgIdNew.focus();
        mensaje(7);
        return false;
      }
      return true;
    }

    function onloadFunctions() {
      new TypeAheadCombo("inppaymentrule");
      new TypeAheadCombo("inpadOrgId");
      new TypeAheadCombo("inpadForcedOrgId");
      new TypeAheadCombo("inpadOrgIdNew");
      new TypeAheadCombo("inpcTaxId");
      new TypeAheadCombo("inpadShipperpathId");
    }
  </SCRIPT>
</HEAD>
<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="resizeArea();onloadFunctions();focoPrimerControl();xx();" onresize="resizeArea();" id="paramBody">
<FORM id="form" method="POST" action="ChangeOrderOrg.html" name="frmMain">
  <INPUT type="hidden" name="Command">
<INPUT type="hidden" name="IsPopUpCall" value="1"></INPUT>
  <INPUT type="hidden" name="inpType" value="" id="paramType"></INPUT>
  <table height="100%" border="0" cellpadding="0" cellspacing="0" id="main">
    <tr>
      <td valign="top" id="tdleftTabs"></td>
      <td valign="top">
        <TABLE width="100%" border="0" cellspacing="0" cellpadding="0" class="Main_ContentPane_Left">
          <TR><TD class="Main_NavBar_bg_left" id="tdleftSeparator"></TD></TR>
          <TR><TD class="Main_ToolBar_bg_left" valign="top"></TD></TR>
          <TR><TD class="Main_Client_bg_left"></TD></TR>
          <TR><TD class="Main_Bottom_bg_left"></TD></TR>
        </TABLE>
      </td>
      <td valign="top">
        <div class="Main_ContentPane_NavBar" id="tdtopButtons"></div>
        <div class="Main_ContentPane_ToolBar" id="paramToolBar"></div>
        <TABLE width="100%" border="0" cellspacing="0" cellpadding="0" class="Main_ContentPane_TabPane" id="tdtopTabs">
          <TR id="paramParentTabContainer"></TR>
          <TR id="paramMainTabContainer"></TR>
          <TR id="paramChildTabContainer"></TR>
        </TABLE>
        <DIV class="Main_ContentPane_Client" style="overflow: auto; display: ;" id="client">
                <table class="dojoTabContainer" border="0" cellpadding="0" cellspacing="0" width="100%" summary="">
                  <tr>
                    <td>
                      <table class="dojoTabPaneWrapper" border="0" cellpadding="0" cellspacing="0" width="100%" summary="">
                        <tr>
                          <td>
                            <!-- MessageBox -->

                            <table cellpadding="0" cellspacing="0" id="messageBoxID" class="MessageBoxyy">
                              <TBODY>
                              <tr class="MessageBox_TopMargin">
                                <td class="MessageBox_LeftMargin"></td>
                                <td></td>
                                <td class="MessageBox_RightMargin"></td>
                              </tr>
                              <tr>
                                <td class="MessageBox_LeftMargin"></td>
                                <td>

                                  <table cellpadding="0" cellspacing="0" style="width: 100%;">
                                    <TBODY>
                                    <tr>
                                      <td>
                                        <div class="MessageBox_TopLeft"></div>
                                        <div class="MessageBox_Left"></div>
                                      </td>
                                      <td class="MessageBox_bg">

                                        <table class="MessageBox_Top">
                                        <TBODY>
                                          <tr>
                                            <td>
                                              <span>
                                              <table cellpadding="0" cellspacing="0" class="MessageBox_Body_ContentCell">
                                                <TBODY>
                                                <tr>
                                                  <td class="MessageBox_Icon_ContentCell">
                                                    <div class="MessageBox_Icon"></div>
                                                  </td>
                                                  <td style="vertical-align: top;" id="messageBoxIDContent">
                                                    <span>
                                                      <div class="MessageBox_TextTitle" id="messageBoxIDTitle">
                                                        Info: AccessTableWithNoView
                                                      </div>
                                                      <div class="MessageBox_TextDescription" id="messageBoxIDMessage">
                                                        The current information is empty.
                                                      </div>
                                                      <div class="MessageBox_TextSeparator"></div>
                                                    </span>
                                                  </td>
                                                </tr>
                                                </TBODY>
                                              </table>
                                              </span>
                                            </td>
                                          </tr>
                                          </TBODY>
                                        </table>

                                      </td>
                                      <td class="MessageBox_RightTrans">
                                        <div class="MessageBox_TopRight"></div>
                                        <div class="MessageBox_Right"></div>
                                      </td>
                                    </tr>
                                    <tr>
                                      <td rowspan="2" class="MessageBox_BottomLeft">
                                      </td>
                                      <td class="MessageBox_BottomTrans MessageBox_bg">
                                      </td>
                                      <td rowspan="2" class="MessageBox_BottomRight">
                                      </td>
                                    </tr>
                                    <tr>
                                      <td class="MessageBox_Bottom">
                                      </td>
                                    </tr>
                                    </TBODY>
                                  </table>

                                </td>
                                <td class="MessageBox_RightMargin"></td>
                              </tr>
                              <tr class="MessageBox_BottomMargin">
                                <td class="MessageBox_LeftMargin"></td>
                                <td></td>
                                <td class="MessageBox_RightMargin"></td>
                              </tr>
                              </TBODY>
                            </table>
        <!-- USER CONTROLS -->
        <TABLE cellspacing="0" cellpadding="0" class="Main_Client_TableEdition">
          <TR>
            <TD class="TableEdition_OneCell_width"></TD>
            <TD class="TableEdition_OneCell_width"></TD>
            <TD class="TableEdition_OneCell_width"></TD>
            <TD class="TableEdition_OneCell_width"></TD>
            <TD class="TableEdition_OneCell_width"></TD>
            <TD class="TableEdition_OneCell_width"></TD>
          </TR>

          <TR>
            <td colspan="6">
              <table class="FieldGroup" cellspacing="0" cellpadding="0" border="0">
              <tbody>
                <tr class="FieldGroup_TopMargin"/>
                <tr>
                  <td class="FieldGroupTitle_Left"><img class="FieldGroupTitle_Left_bg" border="0" src="../../../../../web/images/blank.gif"/></td>
                  <TD class="FieldGroupTitle">Primary Filters</TD>
                  <td class="FieldGroupTitle_Right"><img class="FieldGroupTitle_Right_bg" border="0" src="../../../../../web/images/blank.gif"/></td>
                  <td class="FieldGroupContent"/>
                </tr>
                <tr class="FieldGroup_BottomMargin"/>
              </tbody>
              </table>
            </td>
          </TR>

          <tr>
            <td class="TitleCell">
              <SPAN class="LabelText">Business Partner</SPAN>
            </td>
            <TD class="TextBox_btn_ContentCell" colspan=2>
              <TABLE border="0" cellspacing="0" cellpadding="0" summary="" style="padding-top: 0px;">
                <TR>
                  <TD>
                    <INPUT type="hidden" name="inpcBpartnerId" id="fieldCBPartnerID" value="">
                  </TD>
                  <td class="TextBox_ContentCell">
                    <INPUT type="text" dojotype="openbravo:ValidationTextBox" class="TextBox_btn_TwoCells_width" maxlength="22" name="inpcBpartnerId_DES" id="fieldCBPartnerID_DES" value="" onkeyup="validateTextBox(this.id);"></INPUT><SCRIPT>djConfig.searchIds.push("fieldCBPartnerID_DES");</SCRIPT>
                  </td>
                  <TD class="FieldButton_ContentCell">
                    <TABLE class="FieldButton" onclick="openSearch(null, null, '../info/BusinessPartner_FS.html', 'SELECTOR_BUSINESS', false, 'frmMain', 'inpcBpartnerId', 'inpcBpartnerId_DES', document.frmMain.inpcBpartnerId_DES.value, 'WindowID', 'xx');return false;" onmouseout="this.className='FieldButton';window.status='';return true;" onmouseover="this.className='FieldButton_hover';window.status='Search';return true;" onmousedown="this.className='FieldButton_active';return true;" onmouseup="this.className='FieldButton';return true;" id="fieldWindowID">
                      <TR>
                        <TD class="FieldButton_bg">
                          <IMG alt="Business Partner" class="FieldButton_Icon FieldButton_Icon_BusinessPartner" title="Business Partner" src="../../../../../web/images/blank.gif" border="0" id="buttonBPartner"></IMG>
                        </TD>
                      </TR>
                    </TABLE>
                  </TD>
                </TR>
              </TABLE>
            </TD>
            <TD colspan=3></TD>
          </tr>

          <tr>
            <TD class="TitleCell"> <SPAN class="LabelText">Organization</SPAN></TD>
            <TD class="Combo_ContentCell">
              <SELECT name="inpadOrgId" id="inpadOrgId" class="Combo Combo_OneCell_width">
                <OPTION value=""></OPTION><DIV id="reportAD_Org_ID"></DIV>
              </SELECT>
            </TD>
            <TD class="TitleCell"> <SPAN class="LabelText">Forced organization</SPAN></TD>
            <TD class="Combo_ContentCell">
              <SELECT name="inpadForcedOrgId" id="inpadForcedOrgId" class="Combo Combo_OneCell_width">
                <OPTION value=""></OPTION><DIV id="reportAD_Forced_Org_ID"></DIV>
              </SELECT>
            </TD>
            <TD class="TitleCell"> <SPAN class="LabelText">Destiny organization</SPAN></TD>
            <TD class="Combo_ContentCell">
              <SELECT name="inpadOrgIdNew" id="inpadOrgIdNew" class="ComboKey Combo_OneCell_width" onchange="validateTextBox(this.id);logChanges(this);return true;">
                <OPTION value=""></OPTION><DIV id="reportAD_Org_IDNew"></DIV>
              </SELECT>
            </TD>
          </tr>

          <tr>
            <TD class="TitleCell"> <SPAN class="LabelText">Payment rule</SPAN></TD>
            <TD class="Combo_ContentCell">
              <SELECT name="inppaymentrule" id="inppaymentrule" class="Combo Combo_OneCell_width">
                <OPTION value=""></OPTION><DIV id="reportPaymentRule"></DIV>
              </SELECT>
            </TD>
            <TD class="TitleCell"> <SPAN class="LabelText">Tax</SPAN></TD>
            <TD class="Combo_ContentCell" colspan="3">
              <SELECT name="inpcTaxId" id="inpcTaxId" class="Combo Combo_ThreeCells_width">
                <OPTION value=""></OPTION><DIV id="reportC_TAX_ID"></DIV>
              </SELECT>
            </TD>
          </tr>
          <tr>
            <TD class="TitleCell"> <SPAN class="LabelText">Warehouse</SPAN></TD>
            <TD class="Combo_ContentCell" colspan="3">
              <SELECT name="inpadShipperpathId" id="inpadShipperpathId" class="Combo Combo_OneCell_width">
                <OPTION value=""></OPTION><DIV id="reportM_Warehouse_ID"></DIV>
              </SELECT>
            </TD>
          </tr>

          <tr>
            <TD></TD>
            <TD class="Button_CenterAlign_ContentCell">
              <div>
                <a class="ButtonLink" href="#" onfocus="this.className='ButtonLink_hover'; window.status='Results'; return true;" onblur="this.className='ButtonLink'; window.status=''; return true;" onkeypress="this.className='ButtonLink_active'; return true;" onkeyup="this.className='ButtonLink_hover'; return true;" onclick="submitCommandForm('FIND', false, null, 'ChangeOrderOrg.html');return false;">
                <table class="Button" onmouseout="this.className='Button';window.status='';return true;" onmouseover="this.className='Button_hover';window.status='Results';return true;" onmousedown="this.className='Button_active';return true;" onmouseup="this.className='Button';return true;">
                  <tr>
                    <td class="Button_left"><img class="Button_Icon Button_Icon_search" alt="Results" title="Results" src="../../../../../web/images/blank.gif" border=0 id="buttonResults"/></td>
                    <td class="Button_text">Search</td>
                    <td class="Button_right"></td>
                  </tr>
                </table>
                  </a>
              </div>
            </TD>
            <TD colspan="4"></TD>
          </TR>
        </table>

        <table cellspacing="0" cellpadding="0" width="100%" style="text-align:-moz-center;_text-align:center;">
          <div class="Popup_ContentPane_Client" style="overflow: auto;">
            <TABLE cellspacing="0" cellpadding="0" class="Popup_Client_TableSelector_Grid">
              <TR class="Popup_Client_Selector_DataGrid_HeaderRow"> 
                <TH width="28" class="datagridLineNoHeaderCell Popup_Client_Selector_HeaderRow_bg"><INPUT type="checkbox" name="inpTodos" onclick="marcarTodos(document.frmMain.inpcOrderId, this.checked);return true;"></INPUT></TH>
                <TH width="93" class="datagridCell Popup_Client_Selector_HeaderRow_bg">Document No.</TH>
                <TH width="113" class="datagridCell Popup_Client_Selector_HeaderRow_bg">Organization</TH>
                <TH width="281" class="datagridCell Popup_Client_Selector_HeaderRow_bg">Business Partner</TH>
                <TH width="134" class="datagridCell Popup_Client_Selector_HeaderRow_bg">Payment rule</TH>
                <TH width="89" class="datagridCell Popup_Client_Selector_HeaderRow_bg">Forced organization</TH>
                <TH width="101" class="datagridCell Popup_Client_Selector_HeaderRow_bg">Date</TH>
                <TH width="87" class="datagridCell Popup_Client_Selector_HeaderRow_bg">Amount</TH>
              </TR>
              <DIV id="sectionDetail">
                <TR class="Popup_Client_Selector_DataGrid_Row Popup_Client_Selector_EvenRow_bg" id="inpRecord10000003"> 
                  <TD class="Radio_Check_ContentCell"><INPUT type="checkbox" name="inpcOrderId" value="" id="fieldCOrderId"></INPUT></TD>
                  <TD class="Cell" id="fieldDocumentNo">xxQuantity</TD>
                  <TD class="Cell" id="fieldOrganization">xx</TD>
                  <TD class="Cell" id="fieldBPartner">xxUOM</TD>
                  <TD class="Cell" id="fieldPaymentRule">xx</TD>
                  <TD class="Cell" id="fieldForcedOrg">xx</TD>
                  <TD class="Cell" id="fieldDateOrdered">xxProduct</TD>
                  <TD class="Cell" id="fieldGrandTotal">xx</TD>
                </TR>
              </div>
            </table>
          </div>
        </table>

        <TABLE cellspacing="0" cellpadding="0" class="Main_Client_TableEdition">
          <TR>
            <TD class="TableEdition_OneCell_width"></TD>
            <TD class="TableEdition_OneCell_width"></TD>
            <TD class="TableEdition_OneCell_width"></TD>
            <TD class="TableEdition_OneCell_width"></TD>
            <TD class="TableEdition_OneCell_width"></TD>
            <TD class="TableEdition_OneCell_width"></TD>
          </TR>
                  <TR>
                    <TD></TD>
                    <TD class="Button_RightAlign_ContentCell">
                      <DIV>
                        <A class="ButtonLink" href="#" onfocus="this.className='ButtonLink_hover'; window.status='Accept'; return true;" onblur="this.className='ButtonLink'; window.status=''; return true;" onkeypress="this.className='ButtonLink_active'; return true;" onkeyup="this.className='ButtonLink_hover'; return true;" onclick="submitCommandForm('SAVE', false, null, 'ChangeOrderOrg.html');return false;">
                    <TABLE class="Button" onmouseout="this.className='Button';window.status='';return true;" onmouseover="this.className='Button_hover';window.status='OK';return true;" onmousedown="this.className='Button_active';return true;" onmouseup="this.className='Button';return true;">

                          <TR>
                            <TD class="Button_left"><IMG class="Button_Icon Button_Icon_ok" alt="Accept" title="Accept" src="http://tecnicia14/openbravo/web/images/blank.gif" border="0/"></IMG></TD>
                            <TD class="Button_text Button_width">Process</TD>
                            <TD class="Button_right"></TD>
                          </TR>
                        </TABLE>
                          </A>
                      </DIV>

                    </TD>
                  </TR>


        </TABLE>
</form>
</BODY>
</HTML>
